package com.file.system.service.business;

import com.file.system.entity.business.BusUtensilIndent;
import com.baomidou.mybatisplus.extension.service.IService;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.file.system.entity.business.BusUtensilIndentExcel;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import com.file.system.entity.res.DataPage;

/**
* 器具订单 服务类
* @author jch
* @since 2023-11-02
*/
public interface IBusUtensilIndentService{

    //添加器具订单
    boolean save(BusUtensilIndent busUtensilIndent);

    //添加器具订单(批量)
    boolean saveBatch(@Param("list") List<BusUtensilIndent> busUtensilIndentList);

    //添加或更新器具订单
    boolean saveOrUpdate(BusUtensilIndent busUtensilIndent);

    //编辑器具订单
    boolean updateById(@Param("et")BusUtensilIndent busUtensilIndent);

    //编辑
    boolean update(@Param("ew") UpdateWrapper<BusUtensilIndent> query);

    //删除器具订单
    boolean removeById(@Param("id") Long id);

    //通过ids删除器具订单
    boolean removeByIds(List<Long> ids);

    //查询器具订单
    List<BusUtensilIndent> list(@Param("ew") QueryWrapper<BusUtensilIndent> query);

    //通过ids查询器具订单集合
    List<BusUtensilIndent> listByIds(List<Long> ids);

    //查询所有非删除状态器具订单
    List<BusUtensilIndent> listAll();

    //查询器具订单分页
    DataPage<List<BusUtensilIndent>> page(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize, @Param("ew") QueryWrapper<BusUtensilIndent> query);

    //通过id查询器具订单
    BusUtensilIndent getById(@Param("id") Long id);

    //通过条件查询器具订单
    BusUtensilIndent getByOne(@Param("ew") QueryWrapper<BusUtensilIndent> query);

    //查询器具订单数量
    int count(@Param("ew") QueryWrapper<BusUtensilIndent> query);

    //查询器具订单excel导出数据
    List<BusUtensilIndentExcel> selectIndentExcelList(String ids);

    //签字
    boolean sign(BusUtensilIndent busUtensilIndent);
}
